<%@ include file="../tagJSONLibIncludes.jsp" %>
{
   title:'<fmt:message key="classInst.title.create"/>',
   form:{actionUrl: '${auth}/classInst/${classDefType}/${selectedClassDefId}/createInst',
         formName: 'classInst',
         enctype:'multipart/form-data',
         fields:[
         {name:"layout", type:"group", title:"<fmt:message key="classInst.title.create"/>"},
         <c:forEach var="property" items="${propertyDefs}" varStatus="status">
            <c:if test="${property.isHidden == false}">
            {name:"propertyValues[${status.index}].value", disabled:${property.readOnly}, label:"${property.displayName}", type:"${property.propertyType}", value:""},
            </c:if>
            {name:"propertyValues[${status.index}].property.name", label:"", type:"hidden", value:"${property.name}"},
            {name:"propertyValues[${status.index}].property.id", label:"", type:"hidden", value:"${property.id}"},
         </c:forEach>
         <c:if test="${classDefType == 0}">
         {name:"layout", type:"group", title:""},
         {name:"fileData", type:"singleFile", label:"File"}
         </c:if>
         ],
         buttons:[{name:"btnCancel", label:"<fmt:message key="btn.cancel"/>", type:"button"},
                  {name:"btnReset", label:"<fmt:message key="btn.reset"/>", type:"reset"},
                  {name:"btnAdd", label:"<fmt:message key="btn.create"/>", type:"button"}]
        }
}